/*
 * Copyright 2020 The Kubernetes Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

$expandablesection--spacing: 0.125rem;

@mixin ExpandableSection {
  .kui--expandable-section {
    @content;
  }
}

@mixin ExpandableSectionIsExpanded {
  @include ExpandableSection {
    &.pf-m-expanded {
      @content;
    }
  }
}

@mixin ExpandableSectionContentElement {
  .pf-c-expandable-section__content {
    @content;
  }
}

@mixin ExpandableSectionContent {
  @include ExpandableSection {
    @include ExpandableSectionContentElement {
      @content;
    }
  }
}

@mixin ExpandableSectionToggle {
  .pf-c-expandable-section__toggle {
    @content;
  }
}

@mixin ExpandableSectionButton {
  @include ExpandableSection {
    @include ExpandableSectionToggle {
      @content;
    }
  }
}

@mixin ExpandableSectionToggleIcon {
  .pf-c-expandable-section__toggle-icon {
    @content;
  }
}

@mixin ExpandableSectionToggleText {
  .pf-c-expandable-section__toggle-text {
    @content;
  }
}

@mixin ExpandableSectionButtonIcon {
  @include ExpandableSectionButton {
    @include ExpandableSectionToggleIcon {
      @content;
    }
  }
}

@mixin ExpandableSectionButtonText {
  @include ExpandableSectionButton {
    @include ExpandableSectionToggleText {
      @content;
    }
  }
}

@mixin ExpandableSectionToggleText {
  @include ExpandableSectionToggle {
    .pf-c-expandable-section__toggle-text {
      @content;
    }
  }
}
